import { IComponent } from '@app-nextmesh/types';
import { deletionMenu, separatorMenu } from './commonMenu';
import { IMenuItem } from '@app-nextmesh/components/types';

const makeComponentMenuItems = (component: IComponent) => {
  return [
    {
      label: component.geometryVisible ? '隐藏几何' : '显示几何',
      value: 'geometryVisible',
    },
    {
      label: component.meshVisible ? '隐藏网格' : '显示网格',
      value: 'meshVisible',
    },
    separatorMenu,
    deletionMenu,
  ] as IMenuItem[];
};

export { makeComponentMenuItems };
